﻿<UserControl x:Class="GermaneShanidze.Applications.Jokeri.Views.MyTableView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
    xmlns:res="clr-namespace:GermaneShanidze.Applications.Jokeri.Resources.Text"
    
    mc:Ignorable="d"
    >
    
    <UserControl.Resources>
        <res:JokeriLobbyText x:Key="JokeriTextResources" />
    </UserControl.Resources>
    
    <Grid x:Name="LayoutRoot" Background="White">
        <telerik:RadGridView Name="MyTableGridView"
                             ShowGroupPanel="False"
                             AutoGenerateColumns="False"
                             ItemsSource="{Binding Guests}"
                             
                             
                             Background="Transparent"
                             Opacity="0.50"
                             CanUserDeleteRows="False"
                             RowIndicatorVisibility="Collapsed"
                             IsReadOnly="True"
                             
                             >
            
            <telerik:RadGridView.Columns>
                <telerik:GridViewImageColumn Header="{Binding Source={StaticResource JokeriTextResources}, Path=Photo}" DataMemberBinding="{Binding ProfilePictureUrl}" ImageWidth="40" ImageHeight="40" />
                <telerik:GridViewDataColumn Header="{Binding Source={StaticResource JokeriTextResources}, Path=FirstName}" DataMemberBinding="{Binding FirstName}" />
                <telerik:GridViewDataColumn Header="{Binding Source={StaticResource JokeriTextResources}, Path=LastName}" DataMemberBinding="{Binding LastName}" />
            </telerik:RadGridView.Columns>
        </telerik:RadGridView>
        
    </Grid>
</UserControl>
